package package01;

/**
 * @Description 数组索引越界异常（运行时异常）
 * @Author zzj
 * @Date 2020/7/15 15:51
 */
public class ExceptionDemo01 {
    public static void main(String[] args) {
        int[] arr = new int[3];
        System.out.println(arr[3]);  // 索引越界

        //Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
        //	at package01.ExceptionDemo01.main(ExceptionDemo01.java:11)
    }
}
